An array contains two objects how can they be merged